package com.zx.callback.service;


import com.zx.callback.po.OrderInfo;
import com.zx.callback.po.PayThirdTrade;
import com.zx.callback.vo.JsonResult;

import java.util.Map;

/**
 * @author ：yanst
 * @since: 2017/11/22
 * @history：(date editor desc)
 */
public interface PayOrderService {
    /**
     * 支付宝支付异步通知验证
     * @param paramsMap
     * @return
     */
    JsonResult<PayThirdTrade> validNotifyUrlForAlipay(Map<String, String> paramsMap);

    /**
     * 更改订单状态、支付交易状态
     * @param orderInfo
     * @param payThirdTrade
     * @param paramsMap
     * @return
     */
    JsonResult<String> updatePayState(OrderInfo orderInfo, PayThirdTrade payThirdTrade, Map<String, String> paramsMap);


}
